We currently have various ways to initialize GTK+, and not
all of them were supporting this way of bringing up the
inspector. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=776807
return FALSE;
}
+
+ if (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE)
+ gtk_window_set_interactive_debugging (TRUE);
}
return TRUE;
return FALSE;
done:
- return gdk_display_open_default () != NULL;
+ if (gdk_display_open_default () != NULL)
+ {
+ if (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE)
+ gtk_window_set_interactive_debugging (TRUE);
+
+ return TRUE;
+ }
+
+ return FALSE;
}